package com.crape.faq.bo;

import java.util.List;

import com.crape.common.exceptions.BOException;
import com.crape.common.model.Answer;

public interface IAnswerBO {

	List<Answer> getPagedAnswers(Long questionid, Integer startIndex, Integer pageSize) throws BOException;
	
	Answer getTheAnswer(Long questionid) throws BOException;

	void answerQuestion(Long accountid, Long questionid, String answer) throws BOException;
	
	void updateAnswer(Answer answer) throws BOException;
	
	void setAnswerOfQuestion(Long questionid, Long answerid, Boolean isAnswer) throws BOException;

	void deleteAnswerById(Long id) throws BOException;

	Long addAnswersRef(Long accountid, Long answerid, Integer type) throws BOException;
}
